input: Write a function to calculate the compound interest. The function should take three parameters: investment amount, rate of interest, and time. It should return the compound interest. If any input value is negative, return 0.
  def compoundInterest(investment_amount, rate_of_interest, time):
      if investment_amount < 0 or rate_of_interest < 0 or time < 0:
          return 0
      compound_interest = investment_amount * (pow((1 + rate_of_interest / 100), time))
      return compound_interest
  
  assert compoundInterest(1000, 5, 5) == 1276.2815625
  assert compoundInterest(500, 3, 10) == 672.0944710374974
  assert compoundInterest(-1000, 5, 5) == 0
  assert compoundInterest(0, 5, 5) == 0
  assert compoundInterest(1000, 0, 5) == 1000.0
output: def compoundInterest(investment_amount, rate_of_interest, time):
      if investment_amount < 0 or rate_of_interest < 0 or time < 0:
          return 0
      compound_interest = investment_amount * (pow((1 + rate_of_interest / 100), time))
      return compound_interest