Pergunta de entrevista da empresa Cuelogic Technologies

one coding question on pattern