Problem 6 in Python and C#