Rotate String Right

Programming Interview Medium 4 views
Back to Questions

Problem Description

For each testcase you get string s and integer k. Rotate string to the right by k and output the new string.

Input Format

First line t. For each: line1 s, line2 k.

Output Format

t lines rotated strings.

Sample Test Case

Input:
2 abcdef 2 hello 7
Output:
efabcd ohell

Constraints

Total length of strings

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next