q1 write a method which takes sorted int array return an array with the squares in sorted order. q2 write a method which takes string s1, s2 checks the reverse of s2 exists in s1.