Pergunta de entrevista da empresa Splunk

Couple of design question and 2 coding questions