Pergunta de entrevista da empresa PepsiCo

How to improve your code to be more efficient?