The ground slipped from under my feet when I found out I hadn't secured a PPO at Teradata. It was really hard to digest because my reviews were great, but I had to sit for placements again. Things are sorted now, so here's my NatWest OA and interview experience.
OA (Platform: SHL)
There were 3 sections:
Section 1: 2 DSA questions (60 mins)
Section 2: 20 SQL MCQs (30 mins)
Section 3: 100 behavioural + 8 aptitude questions
The DSA questions were doable. These were the ones in my set.
Question 1: Top Left Submatrix Product
You are given a matrix A with n rows and m columns, and an integer k. A top left submatrix is a block A[0..i][0..j] for some 0 <= i < n and 0 <= j < m. There are exactly n * m such blocks. Count how many of them have a product of all their elements less than or equal to k.
Input: The first line contains n, m and k. Each of the next n lines contains m integers.
Output: The number of top left submatrices whose product is at most k.
Sample Input:
2 3 10
1 2 3
2 1 1
Sample Output:
5
You had to complete this function:
int solve(vector<vector<int>> arr, int k)
Question 2: Maximum Special Nodes on a Path
You are given a tree with N nodes numbered 1 to N, connected by N - 1 undirected edges, and a set of K special nodes. A simple path doesn't visit any node more than once, and a single node on its own is also a simple path. Find the maximum number of special nodes on any simple path.
Input: The first line contains N and K. The next N - 1 lines contain edges u v. The last line contains the K special nodes.
Output: The maximum number of special nodes on any simple path.
Sample Input:
7 4
1 2
1 3
2 4
2 5
3 6
3 7
1 4 5 6
Sample Output:
3
I solved both problems in about 40 mins.
The SQL questions were chill, and I finished them in about 15 mins.
The aptitude questions were unique, like moving lines around or scheduling meetings by marking a calendar. That part took a lot of time, and I could only do 5 out of 8.
In the behavioural part you pick the statement that suits you best. The statements tend to repeat.
I got shortlisted for the interview.
Interview Process
Round 1: Technical
Round 2: HR
The technical round was based on my resume. The interviewer read it for a good minute and then grilled me on my internship project's tech stack. After that he asked:
- The difference between GenAI and Agentic AI
- How to scale my college website
- A DSA question: for each index in an array, find the second largest element ahead of that index
- The tradeoffs between SQL and NoSQL databases, and which to use where
- Decoding strategies of LLMs (I had mentioned them in my intern project) and how RAG works
- Design a RAG architecture over n resumes to find the top 10 students with Java as a skill. I had to explain chunking, embeddings, the keywords I'd use and cosine similarity.
- He saw CI/CD on my resume and asked what containerization is and why we use it. Then he asked some Docker commands. I told him I don't have much DevOps knowledge, and he was okay with that.
- He picked one of my projects and asked me to scale it. Then he asked for one feature I'd like to add. I discussed a small feature, and he asked me to draw its class diagram.
- Finally, he asked how I keep myself updated.
I was able to answer most of the questions well, including all the design ones. He was satisfied with my answers and asked me to wait outside.
After 5 mins I got called for the HR round, and she offered me the role.
I wish I could share more interview experiences, but I got placed fairly early. I'm free now, so feel free to ask me anything.