Leetcode 2509. Cycle Length Queries in a Tree | Hello Interview