Ping Identity interview question

Algorithms