Tesla Interview Question

Please solve the geometry-based problems in Leetcode (e.g., 149, 939, 1610)