Count numbers with same popcount up to all-ones bound | SoFi Interview Question