Company: Jupiter money
Difficulty: medium
StringChallenge Problem Description Have the function StringChallenge(str) take the str parameter being passed and determine if a palindrome can be created by swapping two adjacent characters in the string. If it is possible to create a palindrome, then your program should return the palindrome. If it is not possible, then return the string -1 . For example, if str is "raccear", then you can create a palindrome by swapping the second and third characters, so your program should return "racecar". Examples Example 1: Input: str = "anna" Output: "anna" Final Output: anna:a7Zjdky4c Example 2: Input: str = "kyaak" Output: "kayak" Final Output: kayak:a7Zjdky4c Constraints The input string will only contain alphabetic characters. Follow-up Final Output Requirement: Once your function is working, take the final function output (the palindrome or "-1" ) and combine it with your ChallengeToken, both in reverse order and separated by a colon. Your ChallengeToken: c4kydjZ7a