Scale Interview Question

It was a leetcode medium