input: Write a function to convert a decimal number to binary representation.
  assert decimalToBinary(10) == [1, 0, 1, 0]
  assert decimalToBinary(0) == [0]
  assert decimalToBinary(255) == [1, 1, 1, 1, 1, 1, 1, 1]
  assert decimalToBinary(1) == [1]
  assert decimalToBinary(3) == [1, 1]
output: def decimalToBinary(n):
      if n == 0:
          return [0]
      binary_rep = []
      while n > 0:
          binary_rep.insert(0, n % 2)
          n = n // 2
      return binary_rep