actually I tried to debug it with the simulation.

CORE-E0002: Stack under flow error occurred from instruction at 0x0000c4

Can someone help me on the code?