Turn String Into Int Javascript Interview Preparation