Sainsbury’s interview question

They asked me to code