ConsultAdd Interview Question

String manipulation problems in Python