Pergunta de entrevista da empresa Atlassian

Asked on DP and time complexity from basic to optimal