Pergunta de entrevista da empresa GE HealthCare

Please code the classic Snake game.