Same code not working in C# but working in Java


If the ordering of lists is not specified, please make sure C# code results have proper mechanisms to check our output. I used the same code in C# and Java. Its working in Java but didn’t work in C# as a result I lost a lot of points.


Yes, I wasted almost an hour for C#, so I tried in Java, works fine.