Question d’entretien chez Nagarro

given two sorted array print consecutive no