Kraft Heinz Co. (KHC), the merged business of packaged foods maker Kraft Foods and ketchup maker H.J. Heinz, Thursday reported a swing to profit in the fourth quarter, driven largely by sales.