Amazon interview question

Leetcode Behavior and fit System design