Find Nth Term | CodeChef