Solved the palindrome task with a boolean and use of System.Linq's command SequenceEqual