Compute reachable cells for a cleaning robot | Pinterest Interview Question