problems from book 'data structure experiment'