Ravi Kiran Selvam's submission of K! Tree | CodeChef