223 and 25 are co prime.
so 223^[25*{1-(1/5)}] will give 1 as reminder on dividing by 25.Here 5 is the only factor of 25.
so {223^20}^11 will give 1 as reminder on dividing by 25.
so remaining powers of 223 = 4
223 = 200+23
so we have to divide 23*23*23*23 by 25
or 529*529 by 25
or 4*4 by 25 so reminder = 16