Block interview question

Right join query