Turn String Into Integer Javascript Interview