Add #29 C solution