Is it a tree | CodeChef