Cognizant Interview Question

Return True if the last element in an array is 6 otherwise return False