Google interview question

Only went through the CV