Pregunta de entrevista de Microsoft

OOP design for a game and an algorithm question (leetcode easy)