arch_pattern the dynamic pattern works for odd integer not for negative or 1; this is a qquestion asked in Interview to make the pattern in 3hours