Ripple And Synchronous Counters Geeksforgeeks Python