LinkedIn Interview Question

Implement parseInt()