coder_penguin's submission of Collecting Magical Berries | CodeChef