How to find duplicate number in array c#. In a single loop and without using any pre defined class of .net Framework.