Akash Jain's submission of Necklace | CodeChef