結果 : maximum distinct elements hackerrank solution