please help me find the logic ..

Printable View