Tokopedia Interview Question

Sorting (Using any sort code) & Counting Number (1234 = 10)