Tyemill Interview Question

Easy leetcode question + design question