Tokopedia Interview Question

About coding efficiencies, Time complexity algorithm