Baker Hughes Interview Question

1. Find out duplicate chars in a string. 2. Find out first non-repeated char in a string.