To compile and run

From a mac terminal issue clang -fobjc-arc z.m -o permute to compile
the program