Veeva Systems Interview Question

String manipulation question for python programming