Infosys interview question

One string based coding questions