The 42 suggests this is for TEST?
Does the problem description say there will only be five values? The example input is just that - an example. The real test cases could be much different. When solving problems, try not to assume anything and don’t rely on anything not stated in the problem description.