Second Commit

Implement the solution with Search Algorithm