Atlassian interview question

Interesting technical problem to be solved.