Question d’entretien chez Snap

- reverse an array - sort array if monotonic subsequence detected