ForUsAll interview question

NDA, leetcode hard