The author of this question put their code as an answer. I flagged as NAA but it was declined with this reason:
declined - flags should not be used to indicate technical inaccuracies, or an altogether wrong answer
Was there maybe a lack of context?