WebKul Interview Question

difficult level of pattern