Sainsbury’s interview question

Complete the tecnical test with the time limit