John Deere Interview Question

Dynamic programming question - Arrays and string problems.