Estimation of fractional energy loss of light and heavy flavor mesons in heavy ion collision