Domanda di colloquio di Microsoft

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