// Path: src/main/java/com/hackerrank/JumpingOnTheCloudsRevisited.java
// static int calculateEnergy(byte[] c, int k) {
//     int energy = 100;
//     int i = 0;
//     while ((i = (i + k) % c.length) != 0) {
//         energy = calculateEnergy(c, energy, i);
//     }
// 
//     return calculateEnergy(c, energy, i);
// }


import org.junit.Test;
import static com.hackerrank.JumpingOnTheCloudsRevisited.calculateEnergy;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
package com.hackerrank;



public class JumpingOnTheCloudsRevisitedTest {

    @Test
    public void baseTestCase() {
// Path: src/main/java/com/hackerrank/JumpingOnTheCloudsRevisited.java
// static int calculateEnergy(byte[] c, int k) {
//     int energy = 100;
//     int i = 0;
//     while ((i = (i + k) % c.length) != 0) {
//         energy = calculateEnergy(c, energy, i);
//     }
// 
//     return calculateEnergy(c, energy, i);
// }


// Path: src/test/java/com/hackerrank/JumpingOnTheCloudsRevisitedTest.java
import org.junit.Test;
import static com.hackerrank.JumpingOnTheCloudsRevisited.calculateEnergy;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;

package com.hackerrank;



public class JumpingOnTheCloudsRevisitedTest {

    @Test
    public void baseTestCase() {
        assertThat(calculateEnergy(new byte[]{0, 0, 1, 0, 0, 1, 1, 0}, 2)).isEqualTo(92);