iRobot interview question

Some math and programming questions over the phone.