TSegementation fault


#1

My Code running aand got submitted in Python 3 but same logic I tried in C++ hen it is passing test case but while submission it is giving segementation fault and same thing is happening in Java 8