Make an OR gate from 2 NAND gates?
You are being asked to apply DeMorgan's Theorem to create a positive-logic gate.

More here: https://www.allaboutcircuits.com/textbook/digital/chpt-7/demorgans-theorems/

What you show is fine, they aren't limiting the number of gates you can use.