Here, Genotype of the Purple flower can be determined by "Test Cross", in which Cross will occur between White flower and the given flower.
Case.1) If all the offspring are purple, then the Genotype of that Flower would be: PP
Case. 2) If one of the offspring is White, then the Genotype of that Flower would be: Pp
Hope this helps!