Answer
See the detailed answer below.
Work Step by Step
We know that the potential at any point is the superposition of the potentials due to all charges.
So the potential at point $\rm p$ due to the $dq$, in the given figure, is given by
$$dV=\dfrac{1}{(4\pi \epsilon_0)}\dfrac{dq}{R} \tag 1$$
Let's assume that the linear charge density of this rod is $\lambda$ which is given by
$$\lambda=\dfrac{Q}{L}=\dfrac{dq}{ds}$$
where $dq$ is the charge of the small black segment in the figure below and $ds$ is its length.
Thus,
$$dq=\dfrac{Qds}{L} $$
where $ds=Rd\theta$
$$dq=\dfrac{QRd\theta}{L} \tag 2$$
Plug $dq$ from (2) into (1),
$$dV=\dfrac{1}{(4\pi \epsilon_0)}\dfrac{1}{R}\dfrac{QRd\theta}{L}$$
where the length of the rod is now given by $L=\pi R$,
$$dV=\dfrac{1}{(4\pi \epsilon_0)} \dfrac{Q d\theta}{\pi R}$$
$$dV=\dfrac{1}{(4\pi \epsilon_0)} \dfrac{Q}{\pi R} d\theta$$
So the net electric potential at point $\rm p$ is given by
$$V_{\rm p}=\int dV=\dfrac{1}{(4\pi \epsilon_0)} \dfrac{Q}{\pi R}\int_{0}^{\pi} d\theta $$
$$V_{\rm p} =\dfrac{1}{(4\pi \epsilon_0)} \dfrac{Q}{\pi R}\theta\bigg|_0^\pi$$
$$V_{\rm p} =\dfrac{1}{(4\pi \epsilon_0)} \dfrac{Q}{\pi R} [\pi-0]$$
$$\boxed{V_{\rm p} =\dfrac{1}{(4\pi \epsilon_0)} \dfrac{Q}{ R} }$$