// Path: src/main/java/com/hackerrank/ManasaAndStones.java
// static Set<Integer> calculateLastStone(int n, int a, int b) {
//     Set<Integer> result = new TreeSet<>();
//     for (int i = 0; i < n; i++) {
//         result.add(i * a + (n - i - 1) * b);
//     }
//     return result;
// }


import org.junit.Test;
import java.util.Arrays;
import java.util.HashSet;
import static com.hackerrank.ManasaAndStones.calculateLastStone;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.assertThat;
package com.hackerrank;




public class ManasaAndStonesTest {

    @Test
    public void sampleTest1() {
// Path: src/main/java/com/hackerrank/ManasaAndStones.java
// static Set<Integer> calculateLastStone(int n, int a, int b) {
//     Set<Integer> result = new TreeSet<>();
//     for (int i = 0; i < n; i++) {
//         result.add(i * a + (n - i - 1) * b);
//     }
//     return result;
// }


// Path: src/test/java/com/hackerrank/ManasaAndStonesTest.java
import org.junit.Test;
import java.util.Arrays;
import java.util.HashSet;
import static com.hackerrank.ManasaAndStones.calculateLastStone;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.assertThat;

package com.hackerrank;




public class ManasaAndStonesTest {

    @Test
    public void sampleTest1() {
        assertThat(calculateLastStone(3, 1, 2),