Pregunta de entrevista de REX

A few algorithmic questions during tech/phone interview