GroundTruth interview question

1) Convert string to integer without using java inbuilt methods