DSA Homework 1-7