Study of giant dipole resonance in hot rotating light mass nucleus 31P