ITC Infotech Interview Question

How to solve SOC7 and SOC4 and programming logic