added the code which finds the digit which is repeated once where others are repeated 3 times in O(n) and O(1) space