Array methods with input value

Enter the value
Result
sum