Add (slow) #145 C solution