A high school wrestling match has gone viral after a teenager was told he could not wrestle unless he cut off his locks.