Hackerrank (maximum perimeter triangle)

what will be the recursive approach?