Pergunta de entrevista da empresa Schneider Electric

How to make the codei wrote for technical interview readable?