code: def safe_mult(a, b):
      
      if isinstance(a, str) and isinstance(b, int) and len(a) * b > MAX_STR_LEN:
          raise RuntimeError("String length exceeded, max string length is {}".format(MAX_STR_LEN))
      return a * b
docs: safe version of multiply