Answer:
wait time in order = 0,1,4,3,0,1,3,3,3,2
Explanation:
We need to make a table for easy computation of wait time for each customer.
Customer Arrival Time taken Checkout Wait
Serial no. time for checkout time time
1 1 4 1+4= 5 0
2 4 4 4+5= 9 5-4= 1
3 5 4 9+4= 13 9-5= 4
4 10 4 13+4= 17 13-10=3
5 20 3 20+3= 23 0
6 22 3 23+3= 26 23-22=1
7 23 5 26+5= 31 26-23=3
8 28 1 31+1= 32 31-28=3
9 29 5 32+5= 37 32-29=3
10 35 37-35=2