Cabela's interview question

basic