Largest Triangle Area Leetcode Problems Javascript