SRM 624 Level 3 TreeColoring