Sanmax interview question

basic intro