Adobe interview question

Pair program on a leetcode problem