HackerEarth Choose K Numbers problem solution - TheCScience