PTC Interview Question

A dsa problem related to player disqualification.