Pergunta de entrevista da empresa John Deere

Dynamic programming question - Arrays and string problems.