Cummins Interview Question

Is it better to use char array or string to store password.