Baxture Interview Question

String manipulation program without using inbuilt functions