Pergunta de entrevista da empresa PayPay

How would I resolve out of memory issue in Spark?