I hope a pen and a piece of paper were not all you were given. I can't complete a program like this without the online help. Tell me more details please, maybe i'd better do some preparations for these.
Write a program that works like command dir/s. Design your model so that the class that scans directory structure can be reused later for other purposes.