Shopee interview question

writting curry function with ts