Morgan Stanley interview experience Real time questions & tips from candidates to crack your interview

Senior Associate

Morgan Stanley
upvote
share-icon
4 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Prepare DSA medium-level questions
Tip 2 : Must have deep knowledge of java

Application process
Where: Referral
Resume Tip
Resume tip

Tip 1 : Keep resume compact and precise
Tip 2 : Don't lie on resume

Interview rounds

01
Round
Easy
Online Coding Interview
Duration45 Minutes
Interview date25 Feb 2022
Coding problem1

MCQ based online assessment round + 1 Coding question

1. Second largest element in the array

Easy
15m average time
80% success
0/40
Asked in companies
AdobeSamsungIBM

You have been given an array/list 'ARR' of integers. Your task is to find the second largest element present in the 'ARR'.

Note:
a) Duplicate elements may be present.

b) If no such element is present return -1.
Example:
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.

Output:  6

Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date19 Apr 2022
Coding problem1

One DSA question followed by java concepts

1. Good Nodes

Easy
15m average time
80% success
0/40
Asked in companies
MicrosoftOracleMorgan Stanley

You are given the root node of a binary tree consisting of ‘N’ nodes. Your task is to find the number of good nodes in the given binary tree.

A good node is defined as good if there are no nodes with a value greater than X’s value in the path from the root to X.

You are given a root node ‘ROOT’.Your task is to return the number of good nodes.

Example:
Elements are in the level order form. The input consists of values of nodes separated by a single space in a single line. In case a node is null, we take -1 in its place.

For example, the input for the tree depicted in the below image would be :

Example

1
2 3
4 -1 5 6
-1 7 -1 -1 -1 -1
-1 -1

Explanation :
Level 1 :
The root node of the tree is 1

Level 2 :
Left child of 1 = 2
Right child of 1 = 3

Level 3 :
Left child of 2 = 4
Right child of 2 = null (-1)
Left child of 3 = 5
Right child of 3 = 6

Level 4 :
Left child of 4 = null (-1)
Right child of 4 = 7
Left child of 5 = null (-1)
Right child of 5 = null (-1)
Left child of 6 = null (-1)
Right child of 6 = null (-1)

Level 5 :
Left child of 7 = null (-1)
Right child of 7 = null (-1)

The first not-null node (of the previous level) is treated as the parent of the first two nodes of the current level. 

The second not-null node (of the previous level) is treated as the parent node for the next two nodes of the current level and so on.

The input ends when all nodes at the last level are null (-1).
Note :
The above format was just to provide clarity on how the input is formed for a given tree. 

The sequence will be put together in a single line separated by a single space. Hence, for the above-depicted tree, the input will be given as:

1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1
Try solving now
03
Round
Medium
Video Call
Duration60 Minutes
Interview date25 Apr 2022
Coding problem2

this was completely java based, all questions were asked from java concepts.

1. Java Question

How thread scheduler works in java?

Problem approach

Tip 1 : Study java very deeply

2. Java Question

Filter and transform given set of data using java stream api.

Problem approach

Tip 1 : Focus on java 8 features.

04
Round
Easy
Video Call
Duration60 Minutes
Interview date25 May 2022
Coding problem1

It was system design and hiring manager round

1. Chessboard Game

Easy
30m average time
70% success
0/40
Asked in companies
PayPalMorgan StanleyAmdocs

There is a chessboard of dimensions 15 X 15, and Alice and Bob start playing a game on it. The game is not chess, and involves just one coin.

The coordinates of the top left cell are (1,1) and the bottom right are (15,15). The coin is initially at (x,y). In each turn, the player whose turn it is can move the coin to any of the four cells (provided they are inside the board):

(x-2,y+1)
(x-2,y-1)
(x+1,y-2)
(x-1,y-2)

The figure below shows the possible moves of a coin at (5,4) (An 8 x 8 board is given in the image, but in the problem, it will always be a 15 x 15 board).

Alice makes the first move. Both Alice and Bob take alternate turns and move until it is not possible to move the coin anymore. The player unable to make a move loses.

For example:

If there is a coin at (1,1), Bob wins the game as Alice can make no move to start the game.
Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 2
3 rounds | 3 problems
Interviewed by Morgan Stanley
3463 views
0 comments
0 upvotes
company logo
Technology Analyst
2 rounds | 3 problems
Interviewed by Morgan Stanley
1433 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 10 problems
Interviewed by Morgan Stanley
2602 views
0 comments
0 upvotes
company logo
Technology Analyst Intern
3 rounds | 6 problems
Interviewed by Morgan Stanley
461 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Senior Associate
3 rounds | 2 problems
Interviewed by CIS - Cyber Infrastructure
700 views
0 comments
0 upvotes