Warner Bros. Discovery interview question

Use pseudocode to do parseInt() without using parseInt() for [insert 4 digit number]

Interview Answer

Anonymous

24 Nov 2017

I put the string letters into an int array and then put them back in order by using each number to their exclusive ^ (ect. ^10, ^100, ^1000) or something like that. It's been so long.