Zoho Interview Question

1.convert string to integer without using separate class