The online coding round held on HackerRank was divided into various sections. The 1st section consisted of 2 medium level coding questions. The 2nd section was aptitude and maths based MCQs. The 3rd section was an advanced coding question on graphs. The 4th section consisted of 2 easy subjective HR questions. The last section was MCQs based on CS subjects(eg. DSA, OOPS, CO, etc). Each section was individually timed. 22 students were shortlisted after this round.
This round started with my introduction and a brief discussion on hackathons that I took part in. Then we moved to HackerRank CodePair where I was asked some coding questions like spiral matrix and the maximum number of events that can be attended(Leetcode 1353). I was asked how I can use OOPs concept for solving the 2nd question, to which I defined a class and was then asked to write the sorting algo part of the code using objects of the class defined. Then we moved on to more OOPs questions on data abstraction, different types of polymorphisms, constructor invocation of derived classes, etc.
After a brief introduction, I was asked a coding question on Best Time to Buy and Sell Stock(Leetcode 122)(with a slight change) to which I explained the correct logic. I was then asked some conceptual questions like the difference between stack and heap, what is a memory leak and why does it happen, etc. The round ended with me asking questions about Marcus by GS and the types of projects interns get to work on in the company. Make sure you research about the company beforehand so you can ask them questions and show your interest in the company.
This was a Technical + HR round. It started with HR questions like why I want to work with GS, what are my expectations from GS, how is it different to work in a team rather than working alone. I was then asked to explain the projects that I had mentioned on my CV. I was then asked a real-time problem and asked to develop an algorithm using suitable data structures. I was asked to execute the complete code for the following question. The round ended with me asking questions to the interviewer and a brief discussion about the company, its work culture and so on.
1. The interviewers are very friendly so just stay calm and interact well with them. It's not so hard to crack it if you know your subjects well, so stay confident in your preparation and give it your best shot.
2. Make sure you practice a lot of coding beforehand and know DSA and OOPs concepts well.
3. Try doing some projects outside the curriculum as it can help give an edge over others.