Memory limit problem in CEG2022

I faced problems in memory limit in the last Q of CEG2022 today… Did someone else face it too?