HelloFresh interview question

Assignment was asked to be completed