Given a binary array containing only 0s and 1s, return the length of the longest run of consecutive 1s.
Example 1
Explanation: The longest run of 1s is the final three elements.
Example 2
Example 3
Code execution is coming soon.