DSA homework 10