Microsoft interview question

Algorithm problem: leetcode medium System design