Fast Enterprises Interview Question

Technical question (Coding)