Agnity interview question

technical question