This is a snippet of my code.
Basically this code are going to let user to key in customer (A~Z), time arrival, age and status (VIP or Normal).
If the person age is more than 55, it's also consider as a VIP.
The problem is that when I run the code, it just keep on not responding. The InsertMainQueue will append based on the following condition: every 3 VIP is served, a Normal customer must be served. After serving 10 customers, only those in VIP Queue are eligible to queue and those in Normal queue will be ignored.