Added completed C solution.