Help me in solving COUNTTRIP problem

My issue

which indexing we have to consider is not clear 0-based or 1-based can anyone tell?

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here

}

Problem Link: Count Triplets Practice Coding Problem