Week 1 Assignment 1 pool_forward

I have same issue i checked the notation of h and w and I am using last index =c

I tried everything but i dont know why it passes the 1st testcase and not the second.