Sponsored
Use these hints if you're stuck. Try solving on your own first.
We can try to determine the last digit of the answer, then divide everything by 2 and repeat.
Solve with full IDE support and test cases