Since each subgroup $K$ is contained in some other subgroup $H$, we can list the subgroups of $G$ in ascending order $$\lbrace 1 \rbrace < G_1< G_2 < G_3\cdots< G_{k-1}<G$$ By Lagrange's Theorem, have have $$1\Big\vert |G_1|, |G_1|\Big\vert |G_2|,\ldots, |G_{k-1}|\Big\vert |G|$$
Denote $\frac{|G_i|}{G_{i-1}}=n_{i-1}$, then $|G|=|G_1|\cdot n_1\cdots n_{k-1}$. How can I deduce that each factor is the same prime $p$ and that $G$ is cyclic?