/// <summary>
 /// Method to perform first task of training.
 /// Generates StackOverflowException
 /// </summary>
 /// <exception cref="StackOverflowException">Generates if user inputs "y"</exception>>
 private void OverflowTask()
 {
     try
     {
         this.Writer.WriteLine("\nTask 1: StackOverflowException");
         this.Writer.Write("\nGenerate StackOverflowException? (y/n): ");
         if (this.Reader.ReadLine() == "y")
         {
             ExceptionTests.StackOverflow();
         }
     }
     catch (StackOverflowException e)
     {
         this.Writer.WriteLine(e.Message);
         this.Logger.LogMessage($"Class - SecondTrainingRunner | Method - OverflowTask | {e.Message}");
     }
 }