Shopify interview question

Design robot movement in 2d space