How to find the duplicate character in the string without using inbuilt methods of String Class in java methods like `length()`, `toCharArray()`, `charAt()`?

Ask in an interview please give me solutions on this 

```
input : abcdeddrb
output: db

```