iRobot interview question

Design a homing algorithm for the robot