Bright Data interview question

Two tasks for writing code in google docs