python: add solve func to 003
ruby: Fix syntax 002
ruby: Solved 003