Here 3 processes are there.
Now, at least 2 processes are ready to enter into CS at the same time
Here, as flag[i]=false // means flag[i] not ready to enter CS
So, Pj enters in CS
But CS depends on turn=i and turn=j and not on turn=k
So, if there is a situation turn=j is always false ,then Pk never go inside CS