Add #9 C solution