Pergunta de entrevista da empresa OODA Health

How would you optimize the code.