Amazon Robotics Leetcode, The tech giant has laid off thousands of corporate workers amid plans to invest in AI.