Add #10 C solution