Blue Martini interview question

basic to easy. no issue.