Fast Enterprises Interview Question

Explain the code that you wrote