A : [ 11, 7, 11, 17, 12, 12, 16, 10, 11 ] B : 4
expected output is given 15 but its wrng it should be 14