Period on tree | CodeChef