Frage im Vorstellungsgespräch bei IBM

first round technical questions: hashmap, arraylist,try catch block based questions, metrix program to solve -second technical: rest api, SOLID principal, Kubernetes, Kafka , dependency injection -one program to on string "55554444333122 from this string need to find middle element and freq. o/p expected : 3 :3