Here, we are going to flip a coin until we get three heads in a row. I made it using PHP and codeignitor framework.