Morgan Stanley Interview Question

Basic understanding of OOPS and coding round at first