Samsung Electronics reported second-quarter operating profit that exceeded analysts' estimates, driven by robust demand for artificial intelligence (AI) chips which continued to fuel growth in its memory chip business.