Fixed validPair Logic. let's go test cases.