This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] With $a_P=kt$: $x_P=u_Pt+\frac{kt^3}6$ and $x_Q=u_Qt+\frac{a_Qt^2}2$. The difference $\Delta x=(u_P-u_Q)t-\frac{a_Qt^2}2+\frac{kt^3}6$ is a cubic in $t$ with a root at $t=0$; the remaining quadratic can have at most $2$ further roots. Maximum number of crossings $=3$. Answer: 3.