Atlassian Interview Question

Leetcode Problem in Technical Interview