Pregunta de entrevista de Tanium

I was asked a detailed DSF Algorithm challenge.