@@ -0,0 +1,846 @@
+//https://www.hackerrank.com/challenges/easy-sum%0Aimport java.io.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        final StringBuffer sb = new StringBuffer();%0A        %0A        //INPUT%0A        final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));%0A        for(short T = Short.parseShort(br.readLine()); T %3E 0; --T)%7B%0A            final String%5B%5D input = br.readLine().split(%22 %22);%0A            final int N = Integer.parseInt(input%5B0%5D);%0A            final int M = Integer.parseInt(input%5B1%5D);%0A            %0A            //SOLVE%0A            final int Q = N/M;%0A            final int R = N%25M;%0A            final long S = Q*((M*(M-1L)) %3E%3E 1) + ((R*(R+1L)) %3E%3E 1);%0A            %0A            //OUTPUT%0A            sb.append(S + %22%5Cn%22);%0A        %7D%0A        %0A        System.out.print(sb);%0A    %7D%0A%7D%0A

Create easy-sum.java