rohan's submission of Counting Tuples | CodeChef