That answer is technically an attempt at an answer. In the mod flag review queues, the question is not shown. As such, if the answer looks like an answer to a question that could possibly be asked on Stack Overflow, then the mod should (and probably will) decline the flag.
See also: A minor change to the description of the “not an answer” flag
The current advice if an answer does not answer the question being asked is to downvote and if you really want to flag it then use a custom flag and make sure to describe thoroughly why the question does not attempt to answer the question being asked.
But, that said, it is best to not flag something if it can be dealt with by the community. This means downvoting, commenting letting the author know how their post is incorrect, and soliciting advice, downvotes or delete votes in one of the many chat rooms (such as the SOCVR).