McDonald's interview question

SQL coding question to sort through data