Workday Interview Question

Basic algorithm problems (1st repeated character)