Question d’entretien chez Mphasis

Have been asked to write a code for * pattern