at i=11 n=0 switch condition +2 => n becomes n=2
at i=10 n=2 switch condition *n => n becomes n=4
at i=9 n=4 switch condition -3 => n becomes n=1
at i=8 n=1 switch condition *n => n becomes n=1
at i=7 n=1 switch condition +2 => n becomes n=3
at i=6 n=3 switch condition -3 => n becomes n=0