Pregunta de entrevista de PriceLabs

Pseudo Code that was provided