I have been trying to work out the answer to this question, but I don't have a markscheme so I'd like to confirm if I'm correct or not.
I drew out the number of orientations in which no two cars are parked next to each other and found that there are 6 combinations that fit the criteria.
I then found 6/(10C5), which gave me 6/252 or 1/42 as the probability. Is my working/answer correct?
For a systematic approach:
Note that the possible patterns must have the form $$0^a\,X\,0^b\,X\,0^c\,X\,0^d\,X\,0^e\,X\,0^f$$
Where $0$ is an empty space, $X$ is a car, $a+b+c+d+e+f=5$ and $b,c,d,e>0$. Letting $b'=b-1,c'=c-1,d'=d-1,e'=e-1$ we see that $a+b'+c'+d'+e'+f=1$ so exactly one of these is non-zero (and that one is equal to $1$). That translates to $6$ options, confirming your solution.