Flourish Interview Question

Leetcode style with predefined skeleton