Because –COOH group of tetrapeptide is intact on alanine, its NH2 must be participating in condensation.
∴ Alanine is at one terminus, – – – A.
To fill the 3 blanks, possible options are:
(i) When NH2 group attached to non chiral carbon

(ii) When NH2 group attached to chiral carbon

where,
Glycine (G)
Valine (V)
Phenyl alanine (P)
Alanine (A)
So the number of possible sequence are 4.