Solved Computer Science Algorithm Problem Please Help I

Solved Computer Science Algorithm Problem Please Help I