I had a lot of trouble solving the “Seek and Destroy” challenge.
The main issue was that even though I found a working solution, I was unable to understand how the solution is working.
After a lot of searching, I came across this Reddit thread which is really well explained.
Hope this helps: