Check whether an integer is a power of two | Snapchat Interview Question