Thoughtworks Interview Question

1st repeated character in a string severity and priority in a scenario