WINIT Software Interview Question

2 questions one is a general program,another program is a pattern