Pergunta de entrevista da empresa Amiti Software Technologies

coding question on find the length of longest consecutive sequence in array