need a logic for this

Printable View