Tip 1 : Prepare DSA thoroughly with fundamentals.
Tip 2 : Prepare commonly asked SQL queries.
Tip 1 : Have atleast one project.
Tip 2 : Only put skills you are really comfortable with
It was at 8:30 am. The test was to be given from home, online on mettl platform and it was not proctored in any way. 65 questions had to be done in 65 minutes.
Show an example of callback function with help of code in JavaScript.
I made a simple function to print a string and passed it as a callback in another function which had a setTimeOut method inside it. I then called the second function.
Show how inheritance works in C# with help of code.
I made a parent class with 2 public data members, and then created a child class which inherits from parent class and made another public data member in it. I then instantiated the child class and showed all 3 data members being used.
It was in the afternoon around 3 pm. The interviewer was calm and polite and gave decent amount of time for me to come up with answers and also gave hints to some answers. Mostly DS and SQL questions were aksed.



The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?
I used the iterative approach. I initialized 3 pointers prev as NULL, curr as HEAD,and next as NULL.
I then used a while loop while current != NULL and did the following steps in loop
next=curr->next
curr->next = prev
prev=curr
curr=next



In the given linked list, there is a cycle, hence we return true.

I explained floyd's algorithm to detect and also fix the loop.
SQL query to find Nth highest salary
Tip 1: Practice commonly asked SQL queries
It was around 12pm. The interview was mostly about DSA fundamentals and some SQL as well. The interviewer was a senior developer and was polite and helpful during the interview.
SQL query to find average salary of every department where average salary is greater than 10,000
Tip 1: Practice commonly asked SQL queries
If there are 25 horses and only 5 race tracks, how will you find the top 3 fastest horses using the minimum number of races
Tip 1: Practice previously asked puzzles.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?