This is from gate 2021 statistics paper. The answer in key is given as 143. I got answer as 4 . I used the formula for joint distribution under the condition $x_1+x_2 < y$
Here is my work:
if we let x1 and x2 as the arrival times for the next two visitors while y is the departure time for one of the 10 visitors.
$x_1 \sim exp(1)$
$x_2 \sim exp(1)$
$y \sim exp(1)$
$x_1+x_2 = X \sim erlang(1)$
X < y, X >0
If we perform a double integral with above conditions , it will give 1/4, so 1/p = 4
$p =\int _{ X=0 }^{ \infty }\int _{ y= X }^{ \infty }xe^{-X}.e^{-y}\, dx dy = 1/4$

I'm a bit late to the party, but I thought someone may find it useful to know that the accepted answer isn't correct. Indulge me while I demonstrate my approach.
First suppose there are $n\geq 1$ in attendance at the amusement park. The probability that someone arrives before anyone in the park leaves is $$\mathbb{P}\left(\min\{X_1,...,X_n\}>Y\right)=\frac{1}{n+1}$$ Here $X_1,...,X_n\sim \text{Exponential}(1)$ represent the times each of the n individuals spend at the amusement park and $Y\sim \text{Exponential}(1)$ is the time is takes for the next individual to arrive at the amusement park.
Since we're starting with $10$ individuals in the amusement park and the exponential distribution is memoryless, the probability that exactly two individuals leave before the next customer arrives is $$p=\frac{1}{11}\cdot \frac{1}{12}\cdot \left(1-\frac{1}{13}\right)=\frac{1}{143}$$ Hence $\frac{1}{p}=143$