Ping Identity Interview Question

How would you implement a solution to this problem.