EXL Service Interview Question

How many squares and rectangles are in chess board