Hi, I hope you're doing great!
For questions like this, I'd normally solve by taking the forwards& backward approach.
From the information provided, list down all the facts you know about each compound.
For example,
Compound A is optically active. Hence it has a chiral centre, meaning, a carbon attached to four different atoms/ group of atoms. Since it reacts with hydrogen with platinum as its catalyst, we can deduce that there should be a "kink" meaning a C=C.
Compound B isn't optically active, (doesn't have a chiral centre), and since it reacts with NaOH(aq) to form two separate compounds, (C and D), we can deduce that it has an ester group. I've attached an image to illustrate it.
I'm sure that you can figure it out from here!
Have a good one!