JPMorganChase Interview Question

String manipulation and algebra questions.