Pergunta de entrevista da empresa Informatica

For the previous question how will u decrease the complexity ?