Dear Student,
A light ray striking at one face of a triangular prism gets refracted twice & emerges out from the other surface. The angle between the emergent and the incident ray is called the angle of deviation. The angle between the two refracting faces involved is called the refracting angle of the prism.
If the emergent ray is reversed, it goes back along the same path. The angle of emergence and incidence gets interchanged but the angle of deviation remains the same.
The angle of deviation is minimum when the path of a light ray through the prism is symmetrical i.e., the angle of incidence= angle of emergence. The angle of deviation is maximum when i=900 or when e=900 and it is also the maximum possible deviation if the light ray is to emerge out from the other face without total internal reflection.
Regards.