New Relic interview question

I was asked a short programming question.

Interview Answer

Anonymous

25 July 2018

Coded the solution in java.