ZeMoSo interview question

Time complexity explanation of certain algorithms