iLink Digital Interview Question

When do we use a bar chart and when to use stacked bar chart?