Missing Number

Note

Take the sum of all elements and check with ideal value. The difference is the missing number.

Java

Python