Pergunta de entrevista da empresa Paramount

A few math questions surprised me.