Dinesh Goyal's submission of Save Jewels | CodeChef