Cognizant Interview Question

Sort this array using java