Algorithm Exercise Some Exercise Code from the book "Algorithms"(4th ed.) Can not guarantee that every my solution is the simplest one.