Google Interview Question

2 technical questions like what you see in code forces or leetcode