TikTok interview question

Write down the cross-entropy loss function and explain its formulation.