TLE in "Mod in an Array" (MOD)

Please either format your code or link to your submission - the forum software has mangled it and it won’t compile! :slight_smile: