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: [1,2,3]
Output: 0
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".