Dell Technologies Interview Question

Write a program to do find the palindrom of substring present in the string?