Running loop from p times which is the number of bits required to represent all the elements of the array
X = 0 NEW_LINE for i in range ( p ) : NEW_LINE INDENT count = 0 NEW_LINE for j in range ( n ) : NEW_LINE DEDENT