Frage im Vorstellungsgespräch bei Virtusa

A pattern was given and code was asked regarding it