I have a list =[15,3,12,9,8,7] and k=18 . sorted in reverse list = [15,12,9,,8,7,3]
list =[15,3,12,9,8,7]
i want to append the first value i.e 15 of my list in arr1[] and seco