Simplified index.md (#29285)
Simplified index.md (#29285)

Simplified the logic of nested loops of pattern printing.
BhaveshSGupta/FreeCodeCamp,raisedadead/FreeCodeCamp,jonathanihm/freeCodeCamp,jonathanihm/freeCodeCamp,BhaveshSGupta/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,FreeCodeCamp/FreeCodeCamp,raisedadead/FreeCodeCamp,FreeCodeCamp/FreeCodeCamp