Kroger interview question

No difficulty here.