Company: Deloitte USI_5sep
Difficulty: easy
A smart water dispenser starts with 10 liters of water. Every user dispenses water, and if the remaining water becomes less than 3 liters, the tank is automatically refilled to 10 liters before serving the next user. What is the output of the following pseudocode? ``` water = 10 usage = [2, 4, 3, 5] refill = 0 for i = 0 to length(usage)-1 { if water < 3 { water = 10 refill = refill + 1 } water = w