Amazon Interview Question

The coding question were about substrings and dynamic programming