Ping Identity interview question

How would you implement a solution to this problem.