Pergunta de entrevista da empresa TikTok

Find sequence with largest difference in an array