Related Articles
Yatra.com Interview Experience | Set 4
• Last Updated : 08 Jul, 2015

First round : Written Test
The test paper was consist of 20 MCQ from C, C++ Java and some aptitude question and 4 coding question.

Coding Questions were

1. Dutch Flag Problem
https://www.geeksforgeeks.org/sort-an-array-of-0s-1s-and-2s/

3. Birthday problem
An array is given which contains the age of your friends , if the age of the friend is greater than any neighbor then he will get more chocolate than him. You have to find the number of chocolates for distributing each one.

Ex {9, 8, 7, 3, 2, 1}

Then 9 will get 3 chocolate
8 – 2, 7-1, 3-3, 2-2, 1-1 chocolates respectively
So total 12 chocolates.

4. Rotation of the sorted array through some pivot.

Second Round :
He asked me questions from Data Structures and java.

1: We have to check the pattern check for braces.

```    like {[()]}  return true
{}[]() return false; ```

2. To find the number in an array which is appearing odd number of times.

3. To find the count for each element in array how many number are smaller than this number which appeared previously in the array.

4. Lucky number problem.

5. Dutch flag algorithm.

6. Some questions from BST.

7. Some questions from Java.

3rd round

In the beginning the interviewer said I got a very good reviews for you that you are very good in algorithm. I was like yippeee but then the real story began.

He was throwing the questions from JSP, Java , servlet
He did not want the answers which I know but he was just want what happens in memory all.

He asked me so many questions which were away from my reach then he said, I am done you can leave for the day we will contact you. I knew that I got rejected.

Thanks for gfg for helping me.

If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon and Microsoft Test Serieses.

My Personal Notes arrow_drop_up