Figure AI interview question

Standard leetcode style question masked as non-leetcode