Bitmorpher Interview Question

Basic data structure and simple code