Thanks to visit codestin.com Credit goes to allalgorithms.com
Open a pull request to add the content for this algorithm.