Infosys interview question

write a code for the buzz feed