Problem

Return true if s ends with "x".

Examples

  • endsWithX("box") -> true
  • endsWithX("boy") -> false
Compile and test (Ctrl+Enter)