Question d’entretien chez Agoda

Solve the longest consecutive sequence problem