Nokia Interview Question

Simple bit manipulation and arrays