📌 Problem

You are given:

Rule:

Take the first target characters from password,

move them to the end,

and return the updated string.


✨ Example 1

password = "s3cur1tyC0d3", target = 4

Cut "s3cu" → move to end →

Result = "r1tyC0d3s3cu"


✨ Example 2

password = "lrloseumgh", target = 6

Cut "lrlose" → move to end →

Result = "umghlrlose"