Pi Techniques interview question

C# or C++ coding