Definition: In this task you will be given a list of integers. You should remove all of the integers that are divisible by 3 from the list. If every integer in the input list is divisible by 3 then an empty list should be returned. Zero is divisible by 3.
Input: [51, 6, -40, 88, 18, 77, 58, 30, -65]

[-40, 88, 77, 58, -65]