Samsung has reported the highest Q1 profit since 2018. This comes at a time when the demand for memory chips is soaring.