Pregunta de entrevista de Agoda

Solve the longest consecutive sequence problem