Find hidden artifacts: given an N x N grid, a string of artifact rectangles (each at most 4 cells, given by top-left and bottom-right cells like '1B 2C') and a string of searched cells, return how many artifacts were fully found and how many were partially found.
The question was asked in the Online assessment (HackerRank) stage. The artifact string uses comma-separated rectangles, and each rectangle contains two space-separated cells. The searched string contains space-separated cells.
Function: count_artifacts(n, artifacts, searched)
Return [fully_found, partially_found]. An artifact is fully found when every cell was searched, and partially found when at least one but not every cell was searched.
def count_artifacts(n, artifacts, searched):