Pergunta de entrevista da empresa Optum

Interviewer gave me 2 coding question 1st was to implement method overloading and method overriding and other was to find repeated characters in a string . i executed both Still didn't got selected