Assignment 1 Algorithm Analysis Solution