Tough puzzle help
I have attached the screenshot of the problem statement any help in coming up with the solution.
Leetcode Weekly 498 Solution Discussion