Instead of solving for the principal via the algebraic difference-of-interest formula, use the shortcut fact that for a rate \(r\) over 2 years, the CI-SI difference equals \(P r^{2}\) (with \(r\) as a decimal).
\[P \times (0.05)^{2} = 50 \implies P \times 0.0025 = 50 \implies P = \frac{50}{0.0025} = 20000\]
Now the amount after 3 years at 5% compounded annually:
\[A = 20000(1.05)^{3}\]
Compute \((1.05)^3\) by first squaring: \(1.05^{2}=1.1025\), then multiplying by 1.05 again: \(1.1025\times1.05=1.157625\).
\[A = 20000\times1.157625 = 23152.5\]
The amount at the end of 3 years, compounded annually, is Rs. 23152.5.
Hence, the correct answer is Option D: 23152.5.