Pregunta de entrevista de Hotels.com

Case interview - had to do several calculation