AppsFlyer Interview Question

easy leetcode question with followups