Shopee Interview Question

writting curry function with ts