Hello…
I am doing this question from hackerearth… with DP tag…
I know how to find the longest palindromic subsequence…
This could be a variation question of that… but i am not getting any idea on this…
As this question doesn’t have any editorial … so i asked the doubt…
Please see this…
Thanks…