Two Out Of Three Leetcode Sql