Frage im Vorstellungsgespräch bei REVE Systems

how to reverse a string in java? how to remove collision in HashMap?