Cracking code interview 150 5th edition, realize in C