TCS Interview Question

Blocked queue Dsa question regarding hight substring palindrome