You save ₹start and it grows by pct% each year. Write years_to_double(start, pct) returning how many whole years until it is at least double.
years_to_double(1000, 10) → 8
years_to_double(500, 100) → 1
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.