Microsoft Interview Question

convert a number of data type string to int, in a pseudocode