IBI Group interview question

Palindrome number and event handler functionality