J.P. Morgan Interview Question

A leetcode easy problem with string manipulation