Frage im Vorstellungsgespräch bei Housecall Pro

Reverse a string, Inheritance vs Composition, Hashmap, what is clean code?