Tokopedia interview question

3 algorithm case easy - medium, basic computer science