This problem can be solved by converting the current controlled current source
to current controlled voltage source
by using source transformation technique
. So applying source-transformation technique, this circuit will look like this.

simulate this circuit – Schematic created using CircuitLab
We will obtain two equations, when we apply KVL rule both in input and output side.
Note:
Current through resistor \${\beta}r_e\$ is \$ i_b\$;
Current through \$r_O\$ and \$R_c\$ is \$ i_c\$;
Current through resistor \$R_E\$ is \$ i_e\$ = \$i_c\$ + \$i_b\$
Analysis
For input side,
\$V_b = i_b.{\beta}r_e + {(i_b+i_c)}R_E\$
=> \$V_b = i_b.({\beta}r_e + R_e) + i_c.R_E\$ --------------->equation-1
For output side,
\${i_b}{\beta}{r_o} = {(i_b+i_c)}R_E + {i_c}{R_E} + {i_c}{r_o}\$ --------------->equation-2
From equation-2, we can derive an equation for \$i_c\$ in terms of \$i_b\$.
\$i_c = i_b.\cfrac{({B}r_o-R_E)}{(R_E+R_c+r_o)}\$
Substituting it in equation-1 yields
\$V_b = i_b.({\beta}r_e + R_E) + {({i_b}{.\cfrac{({\beta}r_o-R_E)}{(R_E+R_c+r_o)}})}.{Re}\$
So Ib is common in right hand side. Taking it outside as common,
\$V_b = {i_b}.({{\beta}{r_e} + R_E + {\cfrac{(B.ro-Re)}{(Re+Rc+ro)}}.R_E})\$
Taking \$R_E\$ common from the second and third terms in the RHS, then
\$V_b = {i_b}.({\beta}r_e + ({1 + {\cfrac{({\beta}.r_o-R_E)}{(R_E+R_c+r_o)}}).R_E})\$ ---------->equation-3
\$V_b = {i_b}.({\beta}r_e + (\cfrac{(R_c+(1 + {\beta})r_o)}{(R_E+R_c+r_o)}.R_E)\$
Dividing numerator and denominator of second term in RHS by \$r_o\$ results
\$V_b = {i_b}.({\beta}r_e + (\cfrac{( (1+{\beta})+{\cfrac{Rc}{ro}})}{( 1+{\cfrac{(R_E+Rc)}{ro}})})\$
\$=>Z_B=\cfrac{V_b}{i_b} = {\beta}r_e + (\cfrac{( (1+{\beta})+{\cfrac{Rc}{ro}})}{( 1+{\cfrac{(R_E+Rc)}{ro}})}\$
so circuit input impedance will be \$Z_i=R_b || Z_b\$