Cognizant interview question

Stack Write program to convert a number decimal to binary