Pregunta de entrevista de Expedia Group

Max difference between numbers in an array