Coding Challenge · BEGINNER
A port crane operator needs to stack shipping containers in a specific order. Each container has a unique weight, and the operator wants to find the total weight of the first k containers in the stack. Given an array of positive integers representing the weights of the containers (from bottom to top) and an integer k, …