Sollicitatievraag bij Autodesk

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