Techouts Interview Question

What are the 4 data types? What is the difference between an array and string? And more basic questions. In coding, I was asked to code palindrome program and explain the core logic.