Pregunta de entrevista de Atlassian

Was a simple take not take DP problem