On the analysis of single server finite queue with state dependent arrival and service processes: $M(n)/G(n)/1/K$