Can someone comment on how did you think of the solution? Basically the thought process
I took really long during the contest to think of the solution. Started with thinking of DP and then narrowed down to DFS and then  thought to have two pointers
**I took really long during the contest to think of the solution. Started with thinking of DP and then narrowed down to DFS and then  thought to have two pointers on both ends of start string to move L and R to left and right most sides.. and so on. But I couldnt think of the solution within time. Can you guys please share your thought process here**
['Two Pointers', 'String', 'C', 'Python', 'Java']