largest N digit number of exactly O multiplications
players and fans preferences
count number of substrings with atmost 2 different characters