Add C solution for #64