Pergunta de entrevista da empresa E-LOAN

Some puzzle but I don't remember it exactly