TikTok Interview Question

Implement a popular model layer from scratch.