Compound N reacts with sodium metal to produce a gas that gives a ‘pop’ sound…