Add #12 C solution