Ashish Trivedi's submission of Pairwise AND sum | CodeChef