Cummins interview question

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