Amit Kumar's submission of Rainbow | CodeChef