Words Within Two Edits of Dictionary
Given `queries` and `dictionary`, both lists of lowercase words, return the queries for which there exists a dictionary word with the same length and Hamming distance at most two. An edit here is only changing one character to another at one position. Return matching queries in input order.