Driver program
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr1 = [ ' P ' , ' T ' , ' T ' , ' P ' , ' T ' ] NEW_LINE k = 2 NEW_LINE n = len ( arr1 ) NEW_LINE print ( ( " Maximum ▁ thieves ▁ caught : ▁ { } " . format ( policeThief ( arr1 , n , k ) ) ) ) NEW_LINE arr2 = [ ' T ' , ' T ' , ' P ' , ' P ' , ' T ' , ' P ' ] NEW_LINE k = 2 NEW_LINE n = len ( arr2 ) NEW_LINE print ( ( " Maximum ▁ thieves ▁ caught : ▁ { } " . format ( policeThief ( arr2 , n , k ) ) ) ) NEW_LINE arr3 = [ ' P ' , ' T ' , ' P ' , ' T ' , ' T ' , ' P ' ] NEW_LINE k = 3 NEW_LINE n = len ( arr3 ) NEW_LINE print ( ( " Maximum ▁ thieves ▁ caught : ▁ { } " . format ( policeThief ( arr3 , n , k ) ) ) ) NEW_LINE DEDENT