Edge-test-2 failing

can’t think of an edge case which will fail.

  1. I have checked for space between the 2 pointers should be atleast 2
  2. if size of array is less than 3, then return 0
  3. null array

Consider these test cases:
5 2 3
output: 6
5 4
output: 4

Closing this topic as your issue has been resolved by the community. If not Kindly un-mark the accepted solution to re-open the topic or feel free to create a new topic and post a link to this topic as a reference.