Pergunta de entrevista da empresa Quotient

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