Cognizant Interview Question

Extract keys from object JavaScript