Valorem Reply interview question

Filter this array in c#, get a test to pass in a react app