As artificial intelligence squeezes early-career learning opportunities, capture-the-flag contests could be one way to help pick up the slack.