TikTok Interview Question

how would you analyse the effectiveness of a function?