you give 0indexed integer array num the array num beautiful ifnumslength evennumsi numsi 1 2 0note array consider beautifulyou delete number element num when delete element element right delete element shift unit leave fill gap create element leave delete element remain unchangedreturn minimum number element delete num beautiful Example 1input num 11235output 1explanation you delete nums0 nums1 num 1235 beautiful it prove need 1 deletion num beautifulExample 2input num 112233output 2explanation you delete nums0 nums5 num 1223 beautiful it prove need 2 deletion num beautiful Constraints1 numslength 1050 numsi 105