MathWorks interview question

Linked lists and bit maipulation.