input: Write a function to calculate the compound interest based on the given investment amount, rate of interest, and time period. If the input values are invalid (like non-positive investment or time), return None.
  def compoundInterest(investment_amount, rate_of_interest, time):
      if investment_amount <= 0 or time <= 0:
          return None
      compound_interest = investment_amount * (pow((1 + rate_of_interest / 100), time))
      return compound_interest
  
  assert compoundInterest(1000, 5, 5)==1276.2815625
  assert compoundInterest(2000, 3, 10)==2687.8326457128
  assert compoundInterest(500, 7, 3)==612.522996875
  assert compoundInterest(-1000, 5, 5)==None
  assert compoundInterest(1000, 5, -5)==None
output: def compoundInterest(investment_amount, rate_of_interest, time):
      if investment_amount <= 0 or time <= 0:
          return None
      compound_interest = investment_amount * (pow((1 + rate_of_interest / 100), time))
      return compound_interest