Solved Write A Program That Implements The Algorithm Given

Solved Write A Program That Implements The Algorithm Given