Société Générale Interview Question

Write the algorithm able to compute the pi number.