American Express interview question

factorial, palindrome, sliding window coding question