MAERSK interview question

Coding -Print a missing number in a jumbled sequence.(Optimal solution) Read the elements to the array and print the sum and print the elements in the descending order. Write a code for BFS and DFS.