Morgan Stanley Interview Question
Anonymous User
489
Feb 25, 2023
Feb 25, 2023
Coding Question:
Suppose there is an array : [10,20,10,30,50,20,60,20,20,20,70,80,20,90]
- We need to find the element(say x) which occured most number of times using Stream API.
- We need to remove the immediate left and right element of that element(x).
LLD Question:
An office has 4 floors. Each floor has 4 printers.
A user should be able to print using any printer on his floor.
A printer queue should not have more than n jobs
There are two kinds of printers: Colored and B/W(black and white). The colored print can only go to a colored printer but a B/W print can go to any printer.
Comments (2)


