WINIT Software Interview Question

Print the given pattern and stack implementation.