Frage im Vorstellungsgespräch bei EPAM Systems

in java how is hash calculated, and the problem about a recursive function