The South Korean tech giant is benefiting from the AI boom which has lifted the prices of advanced chips.