Since the OP's picture didn't contain a square 'holding' the circles, we pedantically construct our own universal set $U$,
$\tag 1 U = \bigcup\limits_{i=1}^n A_i$
and let $\chi_{A_i}$ be the corresponding characteristic (indicator) functions.
Set
$\tag 2 C = \sum_{i=1}^n \chi_{A_i}$.
It is easy to see that the the simple function $C$ can only take on values contained in $\{1,2,\cdots,n\}$, so
$\tag 3 C:U \to \{1,2,\cdots,n\}$
The inverse image $C^{-1}(\{1\})$ consists of the elements in $U$ that
belong to exactly one of the sets $A_i$ in the union (1).
Observe that in general, this inverse image can be the empty set. Consider for example these three sets,
$\qquad A_1 = \{1,2\}$, $A_2 = \{2,3\}$ and $A_3 = \{3,1\}$.
Note: If you choose a larger universal set containing all the $A_i$, then $C(x)$ can take on the value $0$. That would happen whenever $x \notin \bigcup A_i$. Practically, it would be best when looking at any simple function expressed as in (2) to write,
$\tag 4 C:U \to \{0,1,2,\cdots,n\}$
That is the common methodology.