Atlassian interview question

It was a Dynamic programming problem.