X109: lastTwo

Given a string of any length, return a new string where the last 2 chars, if present, are swapped, so "coding" yields "codign".

Your Answer:

Feedback

Your feedback will appear here when you check your answer.