Dinesh Goyal's submission of Intersection Matrix | CodeChef