Walgreens' third-quarter earnings beat expectations.