Capital One interview question

Make a custom quick sort and logical spring manipulation problem on Hackerrank