Société Générale interview question

Write the algorithm able to compute the pi number.