Check if right angled triangle from coordinates

From GeeksforGeeks. Pythagoras theorem on coordinates. Solve the geometry problem "Check if right angled triangle from coordinates".

Examples
Input: [0,0,1,0,0,2]
Output: 1
Hints

Check if right angled triangle from coordinates

**From GeeksforGeeks.** Pythagoras theorem on coordinates. Solve the geometry problem "Check if right angled triangle from coordinates".