Solution:
Direction ratios of are respectively are .
In right angle triangle, right angle may occur at any vertex
If the right angle is at the vertex then the dot product of is zero.
It gives
If the right angle is at the vertex , then the dot product of is zero
It gives
If the right angle is at the vertex then the dot product of is zero
It gives
Therefore, sum of all the possible values of is