Rubico interview question

pointers, oops, Data Structures and Javascript