Pergunta de entrevista da empresa Technologent

How would you go about solving this memory error?