Adap.tv interview question

1. Convert string to an integer