Vista interview question

Algorithm for restaurant operation