Pregunta de entrevista de ShopBack

Palindromic subsequence in finding the inputted substring