Teradyne interview question

Write some C and C# code.