Implementation of an algorithm to solve the Panama Canal puzzle in C.