3M interview question

everything was easy