Dinesh Goyal's submission of Counting Spaghetti | CodeChef