Difficulty in solving question no. 7

please tell how to solve question no. 7

@navneetsingh871931aesl_05b915f0efaaa74f question number 7 of pdf or lecture?

Question no. 7 of pdf.

please tell question no.7 of pdf fast.

@navneetsingh871931aesl_05b915f0efaaa74f code for pattern 7 in the below link :