1* 3+2 * 2+3 *1=10 minutes.
If you want to explain it roughly like this: suppose that the time required by four people is A, B, C and D, then
The total time of (seeing a doctor in sequence) is 3a+2b+c, which means that the sum of the minimum hours of A is the smallest.