Domanda di colloquio di Microsoft

Robot cleaning problem how many squares did robot cleaned?