Pergunta de entrevista da empresa Expedia Group

Q sort an array with an inbuilt function called reverse that reverses the given array to an index i