First Floor interview question

Mathematics for beginners and log question