Question d’entretien chez Virtusa

A pattern was given and code was asked regarding it