Add #54 C solution