Pregunta de entrevista de CodeValue

Questions from Richter book CLR via C#. The second part was an algorithm implementation.