Zuora interview question

2 simple string proessing questions and one dp problem. 2nd interview is a simple web programming assigment