Largest number from concatenation

Write codeMedium25 minAmazon style

Your task

Given a list of non-negative integers nums, arrange them so that concatenating their decimal representations forms the largest possible number, and return that number as a string. If the result would be all zeros (e.g. [0, 0]), return "0".

Examples

largest_concat_number(nums: list[int]) -> str
Example 1
Inputlargest_concat_number([10, 2])
Output"210"