Broadridge interview question

write a backend code for a scenario