JPMorganChase Interview Question

String manipulation & array pure functions