Pergunta de entrevista da empresa Darwinbox

how will you detect a loop in json object in Javascript