Kumar Solutions interview question

To convert list into string