The Early Phases of Supernova 2020pni: Shock Ionization of the Nitrogen-enriched Circumstellar Material