BUCKETWA doubt

can anyone explain the concept of this problem.