Let the sum be x.
We know, Amount = Principal (1 + Rate/100)n
Compound interest = Amount - Principal
CI = x (1 + 4/100)2 - x
CI = 51x/625
We know, Simple interest = (P × R × T)/100
SI = (x × 4 × 2)/100 = 2x/25
It is given that CI - SI = 1
⇒ 51x/625 - 2x/25 = 1
⇒ (51x - 50x)/625 = 1
⇒ x = Rs. 625
∴ The sum is Rs. 625