It was problem on CoderPad. Basically you're given an array of numbers and you must place the numbers on a pendulum array.
Anonimo
Sort the array and since you know the count just place the smallest number in the middle and place each number to the right or left of the middle number