The way the mission is written, there may be more than one solution. For instance, given [1,2,3,4,5,6], besides [4,2,1], as in the tests, there is [3,2,1] too.
17
11
1