this program generates all possible strings of a maximum size of "n" provided by the user