Flam Interview Question

Let var const differences, problem solving