❔ Possibilities in simplifying these loops? - C#