BlackRock interview question

Change string into integer