Getting a WA for this solution. Problem seems to be a simple one, but cant figure out where am i going wrong. http://ideone.com/0M03rp