finish factorial problem