Ambesh Tiwari's submission of Counting Triplets | CodeChef