LinkedIn Interview Question

How would you code a dropdown menu?