Give Simple Python Code For A Algorithm Example Problem