In an AIG PC Global Services mobile workflow, you need a utility function that reverses a string. Given a string s, return a new string with its characters in reverse order.
ss in reverse orderExample 1
s = "AIG""GIA"Example 2
s = "claim note""eton mialc"Example 3
s = """"0 <= len(s) <= 10^5s may contain uppercase letters, lowercase letters, digits, spaces, punctuation, and Unicode charactersO(n) times = "AIG"Output"GIA"WhyThe first and last characters swap positions, producing the reversed string.s = "claim note"Output"eton mialc"WhyAll characters, including the space, are reversed.s = ""Output""WhyAn empty string remains empty after reversal.0 <= len(s) <= 10^5s may contain letters, digits, spaces, punctuation, and Unicode charactersThe function should return the reversed string in O(n) timedef reverse_string(s):