Bradford & Galt interview question

very technical