I can't find the time complexity of the following program. Even I can't find a way to calculate its complexity with master theorem. Please help me about how to calculate it. Thanks
My submission : https://mirror.codeforces.com/contest/128/submission/114386842
Problem link : https://mirror.codeforces.com/contest/128/problem/B