Paycom Interview Question

leetcode easy mainly just string manipulation