Identify the product formed ( and )

Identify the product formed ( and )

Step 1:
( is m-directing group while group is o− and p− directing group. Thus, group attach at o− position with respect to and m-position with respect to group)
Step 2:
On reduction with group changes to group.
Step 3:
On treatment with changes to diazo group.
Step 4:
On treatment with , only diazo group reacts and gets removed.
Step 5:
On oxidation with group changes to group.
Asked in: JEE Main 2023 (25 Jan Shift 1)