Fit Hub interview question

how i migrate legacy code base