On Indra Nooyi’s last day as PepsiCo’s chief executive, the beverage maker reported third-quarter earnings that exceeded expectations. At the same time, the company saw...