Ericsson interview question

Cherry Pickup 2 and Subet sum