Question d’entretien chez Autodesk

For the coding exercise, I was asked how I would reverse a subsequence in an array