Google Interview Question

Given Leetcode style coding challenges, medium to hard.