A sum of money is invested at compound interest for 3 years. However, the rate of interest is\(10\%\)for first year,\(15\%\)for second year and\(20\%\)for third year. If the total interest earned is Rs.15,540, then what was the sum of money invested?