HackerEarth Golf nCr solved