Pregunta de entrevista de TikTok

Find sequence with largest difference in an array