Yash Kulkarni's submission of K-th Maximum | CodeChef