Toast Inc interview question

To write a function(s) to solve a business challenge