Atlassian interview question

Easy-medium hackerrank problems