Pergunta de entrevista da empresa Mphasis

Have been asked to write a code for * pattern