Cognizant interview question

Extract keys from object JavaScript