First homework for course Data Structures