Pactera Interview Question

1. How to convert a string to a number