In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list.
--------
Question: [236, 121, 940, 2959, 20, 89, 4]

Answer: [256, 128, 1024, 2048, 16, 64, 4]


Question: [18, 1627, 2624, 4375, 21]

Answer: [16, 2048, 2048, 4096, 16]


Question: [116, 1140, 1321, 579, 17, 55, 2, 176, 549, 3949, 1751, 13, 36, 3, 162]

Answer:
[128, 1024, 1024, 512, 16, 64, 2, 128, 512, 4096, 2048, 16, 32, 4, 128]