Pergunta de entrevista da empresa SmartQ

1- Pattern based question in js