TCS interview question

What is custom setting? difference between custom setting and metadata?