Pergunta de entrevista da empresa Atlassian

Interesting technical problem to be solved.