Zoho interview question

1.convert string to integer without using separate class