Distance between leaves

Sign in to test your solution.