My solution to "The C Programming Language Second Edition"