Pergunta de entrevista da empresa Xiaomi

Can you explain the difference between supervised and unsupervised learning, and provide examples of when each would be appropriate to use?