Karthik's submission of Average of Pairs | CodeChef