Kroger interview question

Questions were on data structures and algorithms