Solution (source code)

= Solution

The quotient is obtained from its image $Z\cong S^1$ by attaching the interior of $D^2$. The boundary map winds $n$ times around $Z$, so this is the <cyclic Moore space in dimension one> $M(\mathbb Z/n,1)$. Its <cellular chain complex> is
$$
0\longrightarrow C_2\cong\mathbb Z
\xrightarrow{\ n\ }C_1\cong\mathbb Z
\xrightarrow{\ 0\ }C_0\cong\mathbb Z
\longrightarrow0.
$$
Therefore
$$
\boxed{H_i(Y;\mathbb Z)\cong
\begin{cases}
\mathbb Z,&i=0,\\
\mathbb Z/n,&i=1,\\
0,&i\geq2.
\end{cases}}
$$