Implemented solution for Single Number