Alex plans on visiting the museum and is at the counter to purchase tickets to get in. Tickets are sold only one at a time. If a visitor needs more than one ticket, he/she has to pass through the queue again to buy each one. Given the number of visitors and the number of tickets each visitor needs, determine the amount of time Alex requires to buy the number needed. Alex's place in the queue will be given. Each transaction takes 1 unit of time. and the time taken to go to the back of the line can be ignored. Example n = 3 tickets = [1, 2, 5] There are 3 buyers needing 1, 2 and 5 tickets each. Alex is at index 1 and need 2 tickets. The first six units of time, t = 0 through t = 5,