Pergunta de entrevista da empresa Expedia Group

Max difference between numbers in an array