Is it flirting or nah?

If a girl told you that she Will hit you but playfully if you failed your exam?

Is it flirting or nah?
Post Opinion