this is the saved code
Find It .. the code works fine for given problem but is giving wrong ans
@imavneet all the given numbers are multiple of 1 but you have never updated your sum[1] so your code will give you wrong ans for k=1,start you for loop from i=1 it will update your sum[1] too.