1. Arrays and bits An array of bytes (unsigned char) is used to store unsigned ints, each using 3 bytes, least significant byte first. Write a function that takes an array and its byte length and prints the numbers in hexadecimal.
2. Check permutation
Write a function that takes as argument an array of n integers
(and its length) and determines (returns 1 or 0) if the array is a permutation of the numbers 1 through n. Use a single array traversal.
Hint. A permutation is a bijection. Since it has an inverse, it has no values
outside the domain of definition. Since it's injective, it takes no value twice.