Netguru Interview Question

Create two simple algorithms for hash and array.