Karan Aggarwal's submission of Two Closest | CodeChef