function inverseView codeinverse(str: string): stringInvert background color and text color. Parametersstr: stringView codetext to invert its color Return TypestringView code