@rrahat93
You have created your desktop flow with power fx enabled features since it's in-preview stage and it have lot of limitations as well.
Please find the below known limitations for power fx enabled flow.

Please replicate your desktop flow by deactivating that option as shown below, and implement similar logic, it should work properly

.
In case if you want to continue with power fx enabled flow with known limitations then use the below syntax:
Index starts from 1 in power fx

Thanks,
Deenuji Loganathan 👩💻
Automation Evangelist 🤖
Follow me on LinkedIn 👥
-------------------------------------------------------------------------------------------------------------
If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀