Sponsored
Use these hints if you're stuck. Try solving on your own first.
Scan from right to left, in each step of the scanning check whether there is a trailing "#" 2 indexes away.
Solve with full IDE support and test cases