HelloFresh interview question

How would I approach testing in legacy code