Optimal Shopping II | CodeChef