eliminate some candidate by make sure ascending order. still time lemit exceeded