Samsung posted its best ever quarterly result between April and June. Demand for memory chips needed for artificial intelligence drove growth. The company's operating profit multiplied and exceeded expectations.