Lime interview question

LeetCode - Unique Paths III