J.P. Morgan Interview Question

Leetcode decode ways problem 91