Problem

Return s with first and last char swapped (length >= 2).

Examples

  • swapFirstLastChar("code") -> "eodc"
Compile and test (Ctrl+Enter)