Blue Martini Interview Question

basic to easy. no issue.