FedEx Has Quarterly Profit, Reversing a Year-Ago Loss