Pergunta de entrevista da empresa TP

due to some issues but i feel for it later