Quotient interview question

Questions on Arrays, trees, https://leetcode.com/problems/reaching-points/