Canadian Tire Interview Question

Nothing too complicated