Domanda di colloquio di Capgemini

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