Lucid Software Interview Question

Dynamic programming : longest string chain