Toast Inc Interview Question

It involved using arrays and recursion