Infosys interview question

String conversation List operations Coding