Tokopedia Interview Question

3 algorithm case easy - medium, basic computer science