Add #42 C solution