HACKAHOLIC prelims

QUEST 6
Simple riddle: Given X horses and Y racetracks, find the minimum number of races needed to find the top Z horses!