Pergunta de entrevista da empresa fabric

Easy/medium leetcode, low-level OOP design