Statistics for Optimal paths for thermodynamic system: the ideal Otto cycle