Question d’entretien chez Expedia Group

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