Question d’entretien chez Infosys

Coding question for a pattern with recursive nature