Solution of The C Programming Language book.