Pregunta de entrevista de Atlassian

LC medium, not typical leetcode -- try practicing with Hackerrank questions