Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 11 months ago. Improve this question Given an array of integers for example, [1 4 3 2 9 8 7 6] Each integer represents an amount of money you can pick