Algorithms-part1

Algorithms-part1 final code