Pergunta de entrevista da empresa Gupshup

in first round just simple two coding problem