Q2Comprehension2 Marks10 May 2026
Passage
Based on the above data, answer the given subquestions.
```
moves = "UUDUDDDUU"
floor = 0
u = d = 0
for i, m in enumerate(moves):
if m == "U":
floor += 1
u += 1
else:
floor -= 1
d += 1
if floor == -2:
print(i+1)
break
print(u, d)
```
What is printed as the output?