// Path: src/main/java/com/hackerrank/LeftRotation.java
// static String rotateLeft(int[] a, int d) {
//     StringBuilder sb = new StringBuilder();
//     for (int i = 0; i < a.length; i++) {
//         int rIdx = rotatedIdx(i, d, a.length);
//         sb.append(a[rIdx]);
//         if (i != a.length - 1) {
//             sb.append(" ");
//         }
// 
//     }
//     return sb.toString();
// }


import org.junit.Test;
import static com.hackerrank.LeftRotation.rotateLeft;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
package com.hackerrank;



public class LeftRotationTest {

    @Test
    public void simpleTestCase() {
// Path: src/main/java/com/hackerrank/LeftRotation.java
// static String rotateLeft(int[] a, int d) {
//     StringBuilder sb = new StringBuilder();
//     for (int i = 0; i < a.length; i++) {
//         int rIdx = rotatedIdx(i, d, a.length);
//         sb.append(a[rIdx]);
//         if (i != a.length - 1) {
//             sb.append(" ");
//         }
// 
//     }
//     return sb.toString();
// }


// Path: src/test/java/com/hackerrank/LeftRotationTest.java
import org.junit.Test;
import static com.hackerrank.LeftRotation.rotateLeft;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;

package com.hackerrank;



public class LeftRotationTest {

    @Test
    public void simpleTestCase() {
        assertThat(rotateLeft(new int[]{1, 2, 3, 4, 5}, 4))