Pergunta de entrevista da empresa XYZ

What is a hash function and how order of 1 is maintained?