This is my code in java which I want to convert into c#. I have a function in c# but its not working for me at all. So if it is possible then please help me.. Thanks in advance<