> Is it obviously broken, as in "you obviously didn't test this code at all"? If so, it should be considered off-topic. Close/flag it, leave a comment, and don't answer.
If it's plausible that the author was unaware of the brokenness, then it's a fine question. One of the purposes of Code Review is to point out problems that the programmer didn't know about.