Chetu interview question

They asked me solve a palimdrome problem