Sponsored
Use these hints if you're stuck. Try solving on your own first.
Examine every possible number for solution. Choose the largest of them.
Use binary search to reduce the time complexity.
Solve with full IDE support and test cases