Infosys interview question

Questions on string plaindromes, given a strinf string find all possible beautiful strinsg