Pergunta de entrevista da empresa UBS

A question on inheritance that was done on paper.