Tech Mahindra Interview Question

Array manipulation and conversion og integer to binary number.