This program generates all possible arrangements for example,