Sapce time complexity

iss problem mai ssare compiler ka output different ayega?