Best Logic to solve this

Printable View