Google Interview Question

- leet code hard question