apple pie's submission of Maximum Number Of Distinct Elements | CodeChef