What are the K weakest rows in a matrix using LeetCode 1337 algorithm?