Gett Interview Question

Given a string, convert it to int