give fixedlength integer array arr duplicate occurrence zero shift remain element rightnote element length original array write do modification input array place return Example 1input arr 10230450output 10023004explanation after call function input array modify 10023004example 2input arr 123output 123explanation after call function input array modify 123 Constraints1 arrlength 1040 arri 9