Nord Security Interview Question

I was given a tech task to solve