Walmart’s journey to a $1 trillion market cap came after embracing technology and providing its customers with greater relief from inflation.