Walmart told its shareholders on Wednesday that inflation is impacting the business. Now it is looking to add automation to offset hiring.