Sponsored
Use these hints if you're stuck. Try solving on your own first.
Find the largest and second largest element with maximum digits equal to x where 1<=x<=9.
Solve with full IDE support and test cases