Adding palindrom c and ruby