Atlassian Interview Question

array question, solved using a hashmap