✅ I'm having trouble understanding what is going on within this selection search - C#