SAP Interview Question

how to resolve stack overflow exception