LeetCodeCount Tested Devices After Test OperationsCount Tested Devices After Test OperationsEasyArraySimulationCountingSolution export function countTestedDevices(batteryPercentages: number[]): number { let testedDevice = 0; for (const batteryPercentage of batteryPercentages) { if (testedDevice < batteryPercentage) { testedDevice += 1; } } return testedDevice; }LeetCodeCount Tested Devices After Test Operationshttps://leetcode.com/problems/count-tested-devices-after-test-operations