Rotate String by K

Programming Interview Medium 5 views
Back to Questions
Next Rotate String Right Medium N

Problem Description

A string s and integer k are provided. Rotate string to the right by k positions and output.

Input Format

Line1: s. Line2: k.

Output Format

One line rotated.

Sample Test Case

Input:
abcd 1
Output:
dabc

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next