TikTok Interview Question

They asked me to write out the pseudo-code for a transformer