Sape time complexity

iss problem mai har compiler mai different output ayega?

what output are you getting?