Pregunta de entrevista de Expedia Group

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