I recently interviewed for a Java Full Stack Developer position at Morgan Stanley. The interview process consisted of six rounds.
The first round was a Hackerrank test that lasted 1.30 hours. It included 10 Java/Angular MCQs and two coding questions. The first coding question involved creating a new array of the same size as the given array and storing the sum of all left elements smaller than the current element. The second coding question involved counting all combinations of size 3 with adjacent elements not matching in a given binary string.
The second round was a code pair interview focusing on algorithms and data structures. The questions included reversing a string without changing the position of special characters, finding unique elements in an array with O(n) time complexity, creating a confirmation dialogue box and explaining its position in HTML and queries in CSS, explaining the difference between components and directives, constructors and OnInit, and the lifecycle of a component, and explaining how to create an HTML page compatible with all screens.
The third round involved algorithms, data structures, and Java technical questions. The questions included explaining generics and the difference between super and extend in generics, explaining finalize and the types of garbage collectors in Java, explaining any garbage collection algorithm, explaining the volatile keyword, explaining how to delete duplicate inserts in SQL, writing code for binary search recursively, implementing a HashMap without using any inbuilt map or set, and designing a low-level design for a tea machine.
The fourth round was similar to the third round, focusing on algorithms, data structures, and Java technical questions. The questions included implementing a queue using a stack, finding a list of all elements in an array that equals the target sum, and finding all siblings of a given node in an N-ary tree.
The fifth round was an introduction and discussion of my previous projects, followed by leadership principle questions.
The final round was an HR discussion.
I was selected for the role.