Google Interview Question

they all are on leetcode