❔ Improvements on my Algorithm? - C#