FIME interview question

Basic pattern printing, Hex operations programs in any language