Toast Inc Interview Question

Was array and recursive questions. Ranging from easy to medium difficulty.