Pergunta de entrevista da empresa Capgemini

Give me the algorithm for bubble sort. Difference between hashing and encryption.