#6. firstLast6
firstLast6
Background
Description
Given an array of ints, return true if 6 appears as either the first or last element in the array. The array will be length 1 or more.
Format
Input
Output
Samples
[1 2 6]
true
[6 1 2 3]
true
[13 6 1 2 3]
false
Limitation
1s, 1024KiB for each test case.