Cognizant Interview Question

rite a program to reverse a string;difference between hashmap and table ;program to switch to different windows