Dinesh Goyal's submission of Counting Graphs | CodeChef