Google interview question

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