Ankit Kumar's submission of Counting Graphs | CodeChef