Domanda di colloquio di TikTok

Find sequence with largest difference in an array