add csharp solution for SmallestFactor