Manipulation array data in js ( Logic Test ) i need help how to solve this logic in my JS code, for input – output flow same as i draw on the paper Thanks in advance good people 🙂