Pregunta de entrevista de Schneider Electric

How to make the codei wrote for technical interview readable?