Pregunta de entrevista de Chess.com

How would you work on re-platforming existing legacy code?