Pergunta de entrevista da empresa Morgan Stanley

3 coding questions of medium to difficult level