Xoriant Interview Question

1. Write a program to convert String to int.