Optum interview question

How would you design user authentication using C++?

Interview Answer

Anonymous

15 Sept 2019

I could construct a map with the username as key and password as value. This would reduce the access time to O(1).