Pergunta de entrevista da empresa SiteAware

how did you think to solve it and why