JPMorganChase interview question

String manipulation and algebra questions.