finished the delete k digits funciton.