A $2^{k}\times n$ ROM required $k\times 2^{k}$ decoder and $n$ OR gates
output square of $4$ bit numbers, So, input 4 bit decoder and with this 4 bit we can represent $(1111)_{2}=15$ in decimal
Now, square of $15^{2}=225$ which can be represented by $8$ bits
So, size of ROM will be $2^{4}\times8$
$4$ address lines $8$ data lines