Google interview question

The usual algorithm problems you would see on leetcode.