Microsoft interview question

Robot cleaning problem how many squares did robot cleaned?