Q: Given a list of coordinates (x,y), count the number of distinct rectangles that can be drawn by connecting any 4 points.
Q: Given a circle, draw n straight lines within the circle. Each line is drawn by randomly selecting 2 points on the circle's circumference and connecting them. Find the expected number of intersections between all the inscribed lines.