CSharp Source Code

Brute force solution
Binary