Google interview question

About array window and math