Reflect a Point over a Line

From LeetCode. Point reflection across a line. Solve the geometry problem "Reflect a Point over a Line".

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

Reflect a Point over a Line

**From LeetCode.** Point reflection across a line. Solve the geometry problem "Reflect a Point over a Line".