MAQ Software Interview Question

Diff betn truncate and delete. stack? 2 programs to write