24 Game

Problem

Given 4 numbers and operations +, -, *, /, determine if you can make 24.

You are given an array of 4 integers. Each integer can be used exactly once. You can use the four operations +, -, *, / in any order, with parentheses in any arrangement. Determine if it's possible to use these four numbers and operations to produce 24.

Examples
Input: [4,1,8,7]
Output: true
Hints

24 Game

Given 4 numbers and operations +, -, *, /, determine if you can make 24.