VMware Interview Question

2 more questions on algorithm (string manipulations)