Tesco interview question

• Adapting? Example