Chess.com Interview Question

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