you bomb defuse time run your informer provide circular array code length n key kto decrypt code replace number all number replace simultaneouslyIf k 0 replace ith number sum k numbersIf k 0 replace ith number sum previous k numbersIf k 0 replace ith number 0As code circular element coden1 code0 previous element code0 coden1Given circular array code integer key k return decrypt code defuse bomb Example 1input code 5714 k 3output 12101613explanation each number replace sum 3 number the decrypt code 714 145 457 571 Notice number wrap aroundexample 2input code 1234 k 0output 0000explanation when k zero number replace 0 example 3input code 2493 k 2output 125613explanation the decrypted code 39 23 42 94 notice number wrap if k negative sum previous number Constraintsn codelength1 n 1001 codei 100n 1 k n 1