Nagarro interview question

Find Missing Number Find first max and Second Max