Intuit interview question

Leetcode style algorithm and data structure