Houzz Interview Question

Usual algorithm question, just look at all the hard ones on Leetcode using Coderpad