Pregunta de entrevista de J.P. Morgan

Generic leet-code style Algorithm questions.