Let us try to avoid an infinite series
Let the probability of a person in line succeeding when her trial comes be $p$, failure $(1-p) = q$
Let $A$ = probability that person $S$$N$ in line ultimately succeeds, then either she succeeds in the first round, or with everyone failing the round, we are back to start
Thus $A = pq^\left(S-1\right) + q^N\cdot A$$A = pq^\left(N-1\right) + q^S\cdot A$
which yields $A = \boxed{\dfrac {pq^\left(S-1\right)}{1-q^N}}$$A = \boxed{\dfrac {pq^\left(N-1\right)}{1-q^S}}$