Three threads (t1, t2, t3) are waiting to acquire a permit from semaphore s. They entered the waiting queue in the respective order. You can read the initialization of s below:
Semaphore s = new Semaphore(1, true);
Which thread will be granted access next?