https://www.naukri.com/code360/problems/beautiful-string_1115625?leftPanelTabValue=PROBLEM https://www.hackerrank.com/challenges/java-loops/problem?isFullScreen=true 2 0 2 10 5 3 5 a=0 b=2 n=10 (0+1.2) (0+1.2+2.2) (0+1.2+2.2+4.2) 2 6 ========================================== class Solution{ public static void main(String []argh){ Scanner in = new Scanner(System.in); int t=in.nextInt(); int a=0; int b=0; int n=0; for(int k=0;k