Algorithm Implementation Programming Project 4 Solution