I\'m trying to solve a Python coding problem. Given a certain array containing only 1\'s and 0\'s I must write a program that returns an array following a few rules: