How many squares are there in the given figure?

Show answer & explanation
Correct answer: D
Explanation
The correct answer is option 4 i.e. 18.

18 squares: ABFE, BCGF, CDHG, EFJI, FGKJ, GHLK, IJNM, JKON, KLPO, QRTS, UVXW, EBGJ, JGLO, ACKI, BDLJ, EGOM, FHPN, ADPM.