Narayan Pai's submission of Jewels and Stones | CodeChef