Driver code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT arr = [ 10 , 5 , 3 , 9 , 2 ] NEW_LINE n = len ( arr ) NEW_LINE x = 7 NEW_LINE rearrange ( arr , n , x ) NEW_LINE printArray ( arr , n ) NEW_LINE DEDENT