Problem

Return true if n reads same reversed (non-negative).

Examples

  • isPalindromeNum(121) -> true
  • isPalindromeNum(123) -> false
Compile and test (Ctrl+Enter)