A. A person commits hindering prosecution in the second degree if, with the intent to hinder the apprehension, prosecution, conviction or punishment of another for any misdemeanor or petty offense, such person renders assistance to such person.

B. Hindering prosecution in the second degree is a class 1 misdemeanor.