Fuse Energy interview question

live coding questions: standard easy task using two pointer algorithm