Pergunta de entrevista da empresa Meta

The interviewer gave me a list of numbers in Python and wanted me to identify consecutive subsequences and return the array of subsequences.