A solution form of a class of higher-order rational difference equations