TASK DEFINITION: In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
PROBLEM: [18, 176, 43, 172]

SOLUTION: [9, 88, 130, 86]

PROBLEM: [1, 51]

SOLUTION: [4, 154]

PROBLEM: [37, 72, 50, 58, 91, 96, 98, 5, 145]

SOLUTION:
[112, 36, 25, 29, 274, 48, 49, 16, 436]