Google interview question

2 leetcodes, pretty fair, helpful interviewers