GitHub Interview Question

One leetcode recursive problem for Oa