ArrayClosestAscenders

result: https://codility.com/demo/results/demoGMA8JG-NNN/