Pergunta de entrevista da empresa REX

A few algorithmic questions during tech/phone interview