Ubiquity6 interview question

Leetcode "hard" level algorithms