LinkedIn interview question

How would you code a dropdown menu?