You are given a string text.
Return a new str that is the same as text but with its first and last characters swapped. Every character in between keeps its original position.
For example, "hello" becomes "oellh".
Special case: if text has fewer than two characters (empty or a single character), there is nothing to swap, so return it unchanged.
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
'hello'
Returns
'oellh'