Find adjacent sums and find missing number from a shuffled list