Hotels.com interview question

Case interview - had to do several calculation