Pregunta de entrevista de GE HealthCare

Please code the classic Snake game.