DSA homework 12