Find a "spy" in a 2D grid given an unknown method, boolean scan(List words), and minimize the number of scans as much as much as possible.
Solutions would be appreciated