Code to test CompareTo keyword in csharp
Below code will help us to check the functionality of test CompareTo keyword in c#