Pregunta de entrevista de Ping Identity

How would you implement a solution to this problem.