Chess.com interview question

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