Write self-attention and cross-entropy pseudocode | TikTok Interview Question