Intuit interview question

It's from intuit tagged on leetcode