ngl, I have no idea how the right answer is the right answer. Let’s just do this and let the math take us to heaven or hell
Since they’re standing in a cirlce, the last person has the first person to their right. That means we consider every single person
$E(X) = \sum_{i=1}^{n} 1 \cdot \Pr(A \cup B) $
$E(X) = n \cdot \Pr(A \cup B) $
$E(X) = n \cdot \frac{1}{4} $
$E(X) = \frac{n}{4} $