Pi Techniques Interview Question

C# or C++ coding