Tech Mahindra interview question

Questions on OOPS, factorial, Palindrome, bubble sort.