Start by eliminating the absolute value. Do this by deducing all the places between the upper and lower bounds of integration wheresin x - cos xis negative. Split the question up into separate integrals summed for each region, using multiplication by -1 to make the negative sections positive.

Then integrate as per normal.