Pergunta de entrevista da empresa Medium

tic-tac-toe solver, hangman, and design an elevator