Click on the buttons on the grid to toggle between 0 and 1.
To convert a decimal number to binary, divide the given number recursively by 2.
Keep track of remainders to be written in reverse to get the binary value.