HackerEarth Kth smallest number again problem solution - TheCScience