Nord Security interview question

I was given a tech task to solve