Algorithm Solved