Tesco interview question

Coding was simple task that should be done with TDD