0
/ 30
Given a string of any length, return a new string where the last 2 chars, if present, are swapped, so "coding" yields "codign".
Given a string of any length, return a new string where the last 2 chars, if present, are swapped, so "coding" yields "codign".
Your feedback will appear here when you check your answer.