Baxture interview question

String manipulation program without using inbuilt functions