Cognizant interview question

Decimal to binary. Binary to decimal comversions