Algorithm Implementation Programming Project 1 Solution