Ethereum is a public blockchain platform which is currently the most advanced smart contract enabled blockchain. With a Turing complete coding system, theoretically you can put any logic into an Ethereum smart contract, and it will be run by the whole network. There are mechanisms in place to prevent abuse, and you need to pay for compute power, by passing in ETH tokens, which act as payment for the miners who run your code.