hello Sandeep, this is Ajay, can you help me how to find a longest palindrome in a given number.. for example if the given number is 51224 we have to consider 122 or 244(212 or 424) like numbers adjacent to each other, like if the number is 7121925 we have to consider 12192 (21912 or 12921)and the number is 3242415 we have to consider 24241(24142 or 42124). So can you help me with the logic how to find the solution for it.... thank you for your response..