Karthik's submission of Random Pair | CodeChef