You are given:
password
.target
.Rule:
Take the first target
characters from password
,
move them to the end,
and return the updated string.
password = "s3cur1tyC0d3", target = 4
Cut "s3cu"
→ move to end →
Result = "r1tyC0d3s3cu"
password = "lrloseumgh", target = 6
Cut "lrlose"
→ move to end →
Result = "umghlrlose"