PepsiCo Inc.’s chips prices had gotten too high. Walmart Inc. had been telling the maker of Doritos, Lay’s, Cheetos and many other beloved snacks that was the case for more than a year. Executives at PepsiCo knew it, too. Sales at Frito-Lay, the company’s snacks powerhouse, were plunging.