Intuit Interview Question

It's from intuit tagged on leetcode