Pregunta de entrevista de J.P. Morgan

data structures and algorithms, leet code easy/ easy-medium