Assignment 3: How Smart is your Pointer? Solution