Devansh Bajpai's submission of Jewels and Stones | CodeChef