If $C$ is a set of $n$ points in the plane that has the following property: For each point $P$ of $C$, there are four points of $C$, each one distinct from $P$ , which are the vertices of a square. Find the smallest possible value of $n$.
Problem
Source: Peru MO 2015 level 3 p1 - ONEM
Tags: geometry, points, combinatorics, combinatorial geometry