Goldman Sachs interview question

Using a Monte Carlo algorithm, simulate the value of Pi