A fairly simple question was asked and someone answers the question with syntax errors and invalid code.
Either this is OPs second account or he is equally clueless because this answer got accepted.
What to do?
Should we accept that SO has an incorrect answer as the accepted one?
I tried to use the flag as not an answer but it was declined with this explanation: flags should not be used to indicate technical inaccuracies, or an altogether wrong answer.
Link to answer: Max Amount of Loops