Google Interview Question

Asked about a leetcode problem