Cognizant interview question

Some random architect level questions