Google interview question

Very easy Leet code questions