Magnasoft interview question

first round write Java program like palindrome, employee class sorting and more valid ipaddress