Pregunta de entrevista de Flipkart

Longest Consecutive Sequence Leetcode question