you give array target consist distinct integer integer array arr duplicatesIn operation insert integer position arr for example arr 1412 add 3 middle 14312 note insert integer beginning end arrayreturn minimum number operation need target subsequence arra subsequence array new array generate original array delete element possibly change remain element relative order for example 274 subsequence 4237214 underline element 242 example 1input target 513 arr 94234output 2explanation you add 5 1 way make arr 5941234 target subsequence arrexample 2input target 648132 arr 47623861output 3 Constraints1 targetlength arrlength 1051 targeti arri 109target contain duplicate