PTC Interview Question

math puzzles. tree graphs