Update FlipkartTest3.java

program to find the sum of consecutive numbers that add up to k in java