Typescript Number To Uint8array Javascript Interview