Unique Number - III

We are given an array containg n numbers. All the numbers are present thrice except for one number which is only present once. Find the unique number. Only use - bitwise operators, and no extra space.
PLEASE CHECK AND CODE AND CORRECT IT ALSO COMMENT THE CHANGES YOU HAVE MADE