New Relic interview question

Average leetcode medium level two pointer problem