GGK Interview Question

Program on number patterns.