give string n represent integer return close integer include palindrome if tie return small onethe close define absolute difference minimized integer Example 1input n 123output 121Example 2input n 1output 0explanation 0 2 close palindrome return small 0 Constraints1 nlength 18n consist digitsn lead zerosn represent integer range 1 1018 1