add question of finding next bigger or smaller number with given N digi