The HR sent me a coding problem. I spent several hours over 3-4 days solving the problem. When I submitted the solution after four days, I was bluntly told that the position had already been filled. They wasted my time and energy. I don't understand why they asked me to solve a problem when the position is already filled.